Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pep517 section #1540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add pep517 section #1540

wants to merge 1 commit into from

Conversation

bollwyvl
Copy link
Contributor

PR Checklist:

  • make all edits to the docs in the src directory, not in docs or in the html files
  • note any issues closed by this PR with closing keywords
  • put any other relevant information below

This issue has come up a couple times on gitter, figured it's worth highlighting here, sorry for not making an issue first...

@ocefpaf @beckermr

@bollwyvl bollwyvl requested a review from a team as a code owner October 28, 2021 17:04
``ModuleNotFoundError`` during test
"""""""""""""""""""""""""""""""""""

When problems occur at the interacton of ``pip`` and more exotic build tools like
Copy link
Member

@leofang leofang Oct 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it "interaction" or "intersection"? (note the spelling error)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess it's interaction, as they are both "agents doing stuff" rather than "states of being"... thanks for the heads-up!

.. code-block:: yaml

build:
script: {{ PYTHON }} -m pip install . -vv --use-deprecated=out-of-tree-build
Copy link
Member

@isuruf isuruf Oct 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just add this env variable in conda-build?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it appears we can, as it's been under test as of the 20.x, and likely worked before.

So is the thinking, in order:

  • conda-build or...
  • conda-smithy and staged-recipes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what PR ( conda/conda-build#4294 ) does. We raised this in the last Conda Community meeting.

cc @chenghlee @jezdez

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. That PR does the opposite.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to suggest improvements in the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

soooo.... i actually tried a couple-layer-deep set of out-of-tree-build, and found that it left some duplicate paths, namely lib/python3.9/site-packages/LICENSE which seemed kinda unsettling...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@beckermr
Copy link
Member

This build of the docs failing here is a bad sign. Anyone have any ideas?

@bollwyvl
Copy link
Contributor Author

bollwyvl commented Oct 28, 2021

My bet's on:

docutils                                            0.18  py38h578d9bd_0      conda-forge/linux-64     738 KB

@beckermr
Copy link
Member

Any ideas on a safe pin @bollwyvl?

@bollwyvl
Copy link
Contributor Author

Previous master was:

docutils                                          0.17.1  py38h578d9bd_0      conda-forge/linux-64     766 KB

So maybe <0.18? Very possibly would need a historic pin for sphinx<3, but that wouldn't move the dial much, i guess...

@bollwyvl
Copy link
Contributor Author

Yerp, looks like the docutils pin does the trick. Really wish i had the time to throw some weight at refreshing this whole pipeline... i haven't been able to successfully run it locally for a while...

@bollwyvl
Copy link
Contributor Author

Welp, maybe this is a bad idea to document anyway if there's a real fix on the horizon... or we can just link to that as "the future"... close at will... will do a separate PR of just 375fc8c

@bollwyvl
Copy link
Contributor Author

Opened #1541

@moorepants
Copy link
Contributor

This issue has come up a couple times on gitter, figured it's worth highlighting here, sorry for not making an issue first...

There was this issue I opened some time back #1174 and this PR would resolve it.

@BastianZim
Copy link
Member

Is this still an issue? I haven't seen it for some time on staged-recipes.

@moorepants
Copy link
Contributor

There is still no recommendation of what to do in the knowledge base. I personally am still confused about how to deal with the duplicate role of a pyproject.toml and meta.yaml file.

@BastianZim
Copy link
Member

@conda-forge/core Do you know anything more here?

@jaimergp
Copy link
Member

jaimergp commented Jul 6, 2022

conda-libmamba-solver uses a pure pyproject.toml setup, and this is the recipe.

I think the rule of the thumb is to add the build-system.requires items in pyproject.toml to requirements.host in meta.yaml, and let pip handle it?

@BastianZim
Copy link
Member

I think the rule of the thumb is to add the build-system.requires items in pyproject.toml to requirements.host in meta.yaml, and let pip handle it?

That's at least what I've been doing and it seems to be working well!

@moorepants
Copy link
Contributor

If that is the recommended practice, then it would be great to get it into the knowledge base.

@hmaarrfk
Copy link
Contributor

relevant discussion also here (cross referencing it) #1778 (comment)

Copy link

netlify bot commented Feb 26, 2024

Deploy Preview for conda-forge-previews ready!

Name Link
🔨 Latest commit cfd7703
🔍 Latest deploy log https://app.netlify.com/sites/conda-forge-previews/deploys/65dca73f2b609e0009ccf940
😎 Deploy Preview https://deploy-preview-1540--conda-forge-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jaimergp
Copy link
Member

Rebased and ported to Docusaurus. You can see the rendered section at https://deploy-preview-1540--conda-forge-previews.netlify.app/docs/maintainer/knowledge_base/#pep517.

Co-authored-by: Nicholas Bollweg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

9 participants